package com.lipaluma.field.merge;

public class MergingTargetFunction {
	private TargetMergedAlgorithm algorithm;
	private String[] params;
	
	public MergingTargetFunction(TargetMergedAlgorithm algorithm, String... params) {
		this.algorithm = algorithm;
		if(params == null)
			params = new String[0];
		else
			this.params = params;
	}

	public TargetMergedAlgorithm getAlgorithm() {
		return algorithm;
	}
	
	public String[] getParams() {
		return params;
	}
	
	@Override
	public String toString() {
		return "Merge with : "+algorithm.getClass()+" and params : "+params;
	}
}
